cr-mdw-ux

(0 reviews)

OTT - Update Product

/{businessId}/product/{id}

[PATCH]

This usecase is to update product for specified OTTs in Bango or ToolBox systems

URL
https://nonprod.lcr.esb.cloud.lla.com/test/cr-mdw-ux-lcr/cr-mdw-ux/v1/{businessId}/product/{id}
URI Params
nametypedescriptionrequired
businessIdstringDefault CR for Costa RicaY
idstringUnique Identifier of an entitlement. (Ex: Entitlement Id)Y
Headers
nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Y
Body
Definitions - Amazon Standalone
NameTypeDescriptionRequired
productSpecification.idStringAmazon Product code.Y
productSpecification.nameStringMerchant key associated with the product. Default: AMAZONY
@baseTypeStringBase type of the entity. Default: Product.N
@typeStringType of the entity. Default: OTT.Y
Definitions - Universal Standalone
NameTypeDescriptionRequired
productSpecification.idStringUniversal Product code.Y
productSpecification.nameStringMerchant key associated with the product. Default: UNIVERSALY
billingAccount.idstringUnique identifier of the billing account.Y
relatedParty[].idstringEmail address to send Notification to the customer.Y
relatedParty[].@referredTypestringType of the related party. Default: Individual.Y
@baseTypeStringBase type of the entity. Default: Product.N
@typeStringType of the entity. Default: OTT.Y
Definitions - Disney Standalone
NameTypeDescriptionRequired
productSpecification.idStringDisney Product code.Y
@baseTypeStringBase type of the entity. Default: Product.N
@typeStringType of the entity. Default: OTT.Y
@referredTypeStringDeprecated. Previously used to identify the merchant type (Example: DISNEY). This field will no longer be used in new implementations.Y
cURL request - Amazon Standalone
curl --location PATCH 'https://lcr-esb-cloud.lla.com/cr-mdw-ux-lcr/cr-mdw-ux/v1/CR/product/99c62f1f-4a73-4f4f-9816-2959d47bc811' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_id: XXXXX' \
--header 'client_secret: XXXXX' \
--header 'Content-Type:  application/json' \
--data-raw '{
  "productSpecification": {
    "id": "amazonPrimePlus",
    "name": "AMAZON"
  },
  "@baseType": "Product",
  "@type": "OTT"
}'
Response - Amazon Standalone
{
  "id": "de9792a7-5ce8-45bd-b553-2600a665f275",
  "orderDate": "2025-05-19T11:57:19.428Z",
  "status": "active",
  "productSpecification": {
    "id": "amazonPrimePlus",
    "name": "AMAZON"
  },
  "@baseType": "Product",
  "@type": "OTT",
  "billingAccount": {
    "id": "1101523732142"
  }
}
cURL request - Universal Standalone
curl --location PATCH 'https://lcr-esb-cloud.lla.com/cr-mdw-ux-lcr/cr-mdw-ux/v1/CR/product/99c62f1f-4a73-4f4f-9816-2959d47bc811' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_id: XXXXX' \
--header 'client_secret: XXXXX' \
--header 'Content-Type:  application/json' \
--data-raw '{
    "productSpecification": {
        "id": "NBCUPLUS_MONTHLY_V1",
        "name": "UNIVERSAL"
    },
    "billingAccount": {
        "id": "833560"
    },
    "relatedParty": [
        {
            "id": "test@xyz.com",
            "@referredType": "Individual"
        }
    ],
    "@baseType": "Product",
    "@type": "OTT"
}'
Response - Universal Standalone
{
    "id": "68147348519ccf1a775a8b85",
    "orderDate": "2025-05-02T07:24:56.614Z",
    "status": "pendingActive",
    "productSpecification": {
        "id": "NBCUPLUS_MONTHLY_V1",
        "name": "UNIVERSAL"
    },
    "relatedParty": [
    {
      "id": "test@xyz.com",
      "@referredType": "Individual"
    }
    ],
    "billingAccount": {
        "id": "123560"
    },
    "@baseType": "Product",
    "@type": "OTT"
}
cURL request - Disney Standalone
curl --location PATCH 'https://lcr-esb-cloud.lla.com/cr-mdw-ux-lcr/cr-mdw-ux/v1/CR/product/99c62f1f-4a73-4f4f-9816-2959d47bc811' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_id: XXXXX' \
--header 'client_secret: XXXXX' \
--header 'Content-Type:  application/json' \
--data-raw '{
  "productSpecification": {
    "id": "disneyPlus"
  },
  "@baseType": "Product",
  "@type": "OTT",
  "@referredType": "DISNEY"
}'
Response - Disney Standalone
{
  "id": "de9792a7-5ce8-45bd-b553-2600a665f275",
  "orderDate": "2025-05-19T11:57:19.428Z",
  "status": "active",
  "productSpecification": {
    "id": "disneyPlus"
  },
  "@baseType": "Product",
  "@type": "OTT",
  "@referredType": "DISNEY",
  "billingAccount": {
    "id": "1101523732142"
  }
}

Reviews